home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_1 / dr / source / makefile < prev    next >
Makefile  |  1993-11-21  |  2KB  |  68 lines

  1. # this makefile is for the PD make on fish 69, using Aztec C 5.2b
  2.  
  3. # READ:  Just plain "make" makes a version of Dr called DD which is set up for
  4. # debugging with either SDB or DB.  Use "make d" to make a finished version.
  5.  
  6. LIB = -lc16
  7.  
  8. PRECOMP = -hi II16
  9.  
  10. # Substitute whatever pathname you want to use for the file II16.  If you
  11. # don't want to make precompiled header files just use "PRECOMP =".  II16
  12. # can be precompiled from exec/exec.h, libraries/dosextens.h, the prototypes 
  13. # and pragmas for the exec and dos libraries, and perhaps string.h and Paul.h,
  14. # with 16 bit ints.  IPRECOMP is for all of those plus intuition/intuition.h and
  15. # the intuition pragmas and prototypes.
  16.  
  17. SDBCMD = -bs -s0f0n
  18.  
  19. CCOPTS = -pe -wcrup -sabfmnpu
  20. #  (I normally set the CCOPTS environment var to "-pe -wcl -sabfmnpu -qf".)
  21.  
  22. CFLAGS = $(CCOPTS) $(PRECOMP) -ps
  23. C = $(CFLAGS)
  24. L = +q -m
  25.  
  26.  
  27. ########## this produces a version of Dr that SDB or DB can be used on, which
  28. ########## will NOT be pure:
  29.  
  30. ram\:dd : ddr.o dsmallio.o
  31.     ln $L -w -g -o ram:dd ddr.o dsmallio.o $(LIB)
  32.     -@dr -l ram:dd\#?
  33.  
  34. # the last line above assumes you already have a working Dr on line.  And it
  35. # also responds to the fact that this pd make considers # in the MIDDLE of a
  36. # line to be a start of comment unless preceded by a backslash.
  37.  
  38. ddr.o : dr.c
  39.     cc $C $(SDBCMD) -d DEBUG -o ddr.o dr.c
  40.  
  41. dsmallio.o : smallio.c
  42.     cc $C $(SDBCMD) -d BACKGROUND -o dsmallio.o smallio.c
  43.  
  44.  
  45. ############## This is the final version without debugging information:
  46.  
  47. d : ram:Dr
  48.  
  49. ram\:Dr : dr.o purify.o smallio.o
  50.     ln $L -o ram:Dr dr.o purify.o smallio.o $(LIB)
  51.     @protect ram:Dr +p
  52.     -@c:dr ram:Dr
  53.  
  54. dr.o : dr.c
  55.     cc $C dr.c
  56.  
  57. smallio.o : smallio.c
  58.     cc $C -d BACKGROUND smallio
  59.  
  60. n : NathanHale
  61.  
  62. NathanHale : t:nathanhale.o
  63.     ln $L -o NathanHale t:nathanhale.o $(LIB)
  64.     -@dr NathanHale
  65.  
  66. t\:nathanhale.o : nathanhale.c
  67.     cc $C -o t:nathanhale.o nathanhale.c
  68.